package com.echo.echovividlive.controller;


import com.echo.echovividlive.domain.dto.LiveRoomPageDTO;
import com.echo.echovividlive.domain.entity.Result;
import com.echo.echovividlive.service.ILiveRecordService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiajunjie
 * @since 2024-11-26
 */
@RestController
@RequestMapping("/echo/liveRecord")
public class LiveRecordController {

    @Resource
    private ILiveRecordService liveRecordService;

    @PostMapping("/list")
    public Result getMyRoom(@RequestBody LiveRoomPageDTO liveRoomPageDTO) {
        return liveRecordService.pageList(liveRoomPageDTO);
    }
}
